package com.hu.hutool.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author CazCen
 * @Date 2021/11/22 12:17
 */
@Component
@Data
public class HuToolConfig implements InitializingBean {

    @Value("${hu.tool.i18n:}")
    private String i18n;

    private static HuToolConfig config = null;

    public static HuToolConfig getAdminConfig() {
        return config;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        config = this;
    }
}
